From: Benjamin Berg Date: Wed, 29 Jul 2020 14:59:32 +0000 (+0200) Subject: data: Place the shell into session.slice when using systemd X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~684^2^2~75 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=b689b35b7ddfd783cd08d5f506ccc83093379197;p=gnome-shell.git data: Place the shell into session.slice when using systemd This way we conform more to https://systemd.io/DESKTOP_ENVIRONMENTS https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/895 --- diff --git a/data/org.gnome.Shell@wayland.service.in b/data/org.gnome.Shell@wayland.service.in index 28ef7154d..427e3c807 100644 --- a/data/org.gnome.Shell@wayland.service.in +++ b/data/org.gnome.Shell@wayland.service.in @@ -14,6 +14,7 @@ PartOf=gnome-session-initialized.target Before=gnome-session-initialized.target [Service] +Slice=session.slice Type=notify # NOTE: This can be replaced with ConditionEnvironment=XDG_SESSION_TYPE=%I # with systemd >= 245. Also, the current solution is kind of painful diff --git a/data/org.gnome.Shell@x11.service.in b/data/org.gnome.Shell@x11.service.in index be2d1ff91..a70f24909 100644 --- a/data/org.gnome.Shell@x11.service.in +++ b/data/org.gnome.Shell@x11.service.in @@ -18,6 +18,7 @@ StartLimitIntervalSec=15s StartLimitBurst=3 [Service] +Slice=session.slice Type=notify # NOTE: This can be replaced with ConditionEnvironment=XDG_SESSION_TYPE=%I # with systemd >= 245. Also, the current solution is kind of painful